/**
 * Copyright - Accor - All Rights Reserved www.accorhotels.com
 */
package com.my.imq.web.tools.dto;

import java.io.Serializable;
import java.util.List;

import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlElementWrapper;
import javax.xml.bind.annotation.XmlRootElement;

/**
 * @author <a href="MABDELOUHAB">MABDELOUHAB</a>
 * created 22 févr. 2013
 * @since 
 * @version $Id$
 */
@XmlRootElement(name = "chart")
public class ChartDTO
    implements Serializable
{

    private String title;

    private List<SeriesDTO> series;

    /**
     * @return the series
     */
    @XmlElementWrapper(name = "series")
    @XmlElement(name = "serie")
    public List<SeriesDTO> getSeries()
    {
        return series;
    }

    /**
     * @param series the series to set
     */
    public void setSeries( List<SeriesDTO> series )
    {
        this.series = series;
    }

    /* (non-Javadoc)
     * @see java.lang.Object#toString()
     */
    @Override
    public String toString()
    {
        return "ChartDTO [" + ( series != null ? "series=" + series : "" ) + "]";
    }

    /**
     * @return the title
     */
    @XmlAttribute(name = "title")
    public String getTitle()
    {
        return title;
    }

    /**
     * @param title the title to set
     */
    public void setTitle( String title )
    {
        this.title = title;
    }

}
